<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

?>
<style>
.avatar{
    background: white;
}
.form-control[disabled] {
    background: #fffcf5;
}
</style>
<div class="chart">
<div class="col-md-4 charts-grids widget">
    <div class="card card-user">
        <div class="content">
            <div class="author">
                <img class="avatar border-white" src="/backend/img/avatar.jpg" alt="...">
                <h4 class="title">
                    <?= $user->realname ?><br>
                </h4>
            </div>
            <p class="description text-center">
                <?= $user->isAdmin ? '前台管理员' : '普通用户'; ?>
            </p>
        </div>
        <hr>
    </div>
</div>

</div>
      <div class="col-md-4 charts-grids widget states-mdl">
                <form>
                    <div class="row">
                        <div class="col-md-2" style="width:120px;">
                            <div class="form-group">
                                <label>姓名:</label>
                                <input type="text" class="form-control border-input" disabled  value="<?=$user->realname ?>">
                            </div>
                        </div>
                        <div class="col-md-2" style="width:100px;">
                            <div class="form-group">
                                <label>性别:</label>
                                <input type="text" class="form-control border-input" disabled  value="<?= $user->gender ?>">
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-2">
                             <div class="form-group">
                                <label>联系方式：</label>
                                <input type="text" class="form-control border-input" disabled  value="<?= $user->tel ?>">
                            </div>
                        </div>

                         <div class="col-md-6">
                             <div class="form-group">
                                <label>地址：</label>
                                <input type="text" class="form-control border-input" disabled  value="<?= $user->info ?>">
                            </div>
                        </div>
                    </div>
               </form>
      </div>
